package datatypes;

import java.util.Vector;

public class Connection {

	
	private BluetoothDeviceAddress connection = null;
	private boolean isMaster = false;
	//Timestep can starts with -1, therefor an initialisation is needed, with lower value 
	private int scinceTimeStep = -10;
	
	public Connection(BluetoothDeviceAddress partner, boolean imTheMaster, int timeStep){
		this.isMaster = imTheMaster;
		connection = partner;
		this.scinceTimeStep = timeStep;
	}
	
	public BluetoothDeviceAddress getConnectedPeer (){
		return this.connection;
	}
	
	public int getTimeStamp(){
		return this.scinceTimeStep;
	}
}
